import service from '@/utils/request'
// @Tags RegionData
// @Summary 创建地区数据
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.RegionData true "创建地区数据"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /RD/createRegionData [post]
export const createRegionData = (data) => {
  return service({
    url: '/RD/createRegionData',
    method: 'post',
    data
  })
}

// @Tags RegionData
// @Summary 删除地区数据
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.RegionData true "删除地区数据"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /RD/deleteRegionData [delete]
export const deleteRegionData = (params) => {
  return service({
    url: '/RD/deleteRegionData',
    method: 'delete',
    params
  })
}

// @Tags RegionData
// @Summary 批量删除地区数据
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除地区数据"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /RD/deleteRegionData [delete]
export const deleteRegionDataByIds = (params) => {
  return service({
    url: '/RD/deleteRegionDataByIds',
    method: 'delete',
    params
  })
}

// @Tags RegionData
// @Summary 更新地区数据
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.RegionData true "更新地区数据"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /RD/updateRegionData [put]
export const updateRegionData = (data) => {
  return service({
    url: '/RD/updateRegionData',
    method: 'put',
    data
  })
}

// @Tags RegionData
// @Summary 用id查询地区数据
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.RegionData true "用id查询地区数据"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /RD/findRegionData [get]
export const findRegionData = (params) => {
  return service({
    url: '/RD/findRegionData',
    method: 'get',
    params
  })
}

// @Tags RegionData
// @Summary 分页获取地区数据列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取地区数据列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /RD/getRegionDataList [get]
export const getRegionDataList = (params) => {
  return service({
    url: '/RD/getRegionDataList',
    method: 'get',
    params
  })
}

// @Tags RegionData
// @Summary 不需要鉴权的地区数据接口
// @Accept application/json
// @Produce application/json
// @Param data query flaudReq.RegionDataSearch true "分页获取地区数据列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /RD/getRegionDataPublic [get]
export const getRegionDataPublic = () => {
  return service({
    url: '/RD/getRegionDataPublic',
    method: 'get',
  })
}
